

$(document).ready(function() {
  $('#example-1').ratings(10,4).bind('ratingchanged', function(event, data) {
	  
    $('#example-rating-1').text(data.rating);
    
    $.get(
    		'/Series/giveRate',
    		{rating: data.rating, sid:id },
    		function(ajaxCevap) {
    			$('#rating').html(ajaxCevap)
    		}
    );
    
  });
});